<?php

class Model_ACSearch
{
	
    public function findByPartial($phrase,$return_num)
    {
    	//find users by user name
        $userMapper = new Model_UsersMapper();
        $entries = $userMapper->findByPartial($phrase, $return_num);
        return $entries;
    }
    
    public function findVenuesByPartial($phrase,$return_num)
    {
    	//find venues by venue name.
        $venueMapper = new Model_VenuesMapper();
        $entries = $venueMapper->findVenuesByPartial($phrase, $return_num);
        return $entries;
    }
    
}

